/*
 * Simple packager CRUD model
 * this approach is valid for v1 beta
 */
class Paquet {
    Date dateCreated
    Date lastUpdated

	String name
	String description
	String keywords
    String lang

    String filename
    String filetype
	byte[] content

	/* Auth
	 *
	 * if null or all > everybody can read it.
	 * if defined > only members of group can read the package.
	 */
	/* static belongsTo = [g: group] */
	static hasMany = [g: Role]

	static constraints = {
		name(blank:false)
		description(blank:false)
		content(nullable:false)
	}
}